import math
for a in range(333):
    for b in range(1,500):
        c=math.sqrt(a**2+b**2)
        if a+b+c==1000.0:
            print a,b,c
